MultilineString

annotation class MultilineString

Java field-friendly version of TomlMultilimeString

Marks the annotated String property as multiline when encoded.

class MultilineStringData(
@TomlMultilineString
val multilineString: String
)
MultilineStringData("""
Do, a deer, a female deer.
Re, a drop of golden sun.
""".trimIndent())

will produce:

multilineString = """
Do, a deer, a female deer.
Re, a drop of golden sun."""

Author

fzzyhmstrs

Since

0.2.0